<?php

namespace common\models;

class Status
{
    const TEST_PHONE = [
        18660933615,
        18615596654,
        15563650050,
        15051076611,
        13851161979,
    ];

    const CITY_POSITION_TIMEOUT = 1;

    const NEW_CONTRACT = 10;

    const CONTRACT_PARENT_ADD = 0.05;
    //通用状态  展示/不展示(启用/禁用)
    const COMMON_STATUS_SHOW = 1;
    const COMMON_STATUS_HIDDEN = 2;
    public static function commonStatusMap()
    {
        return [
            static::COMMON_STATUS_SHOW => '启用',
            static::COMMON_STATUS_HIDDEN => '禁用'
        ];
    }

    //通用选择 选择是或者否
    const COMMON_RADIO_YES = 1;
    const COMMON_RADIO_NO = 2;
    public static function commonRadioMap()
    {
        return [
            static::COMMON_RADIO_YES => '是',
            static::COMMON_RADIO_NO => '否',
        ];
    }

    //通用状态 删除 - 不删除
    const COMMON_IS_DELETE = 1;     #已删除
    const COMMON_IS_NOT_DELETE = 2;  #未删除
    public static function commonDeleteMap() {
        return [
            static::COMMON_IS_DELETE => '已删除',
            static::COMMON_IS_NOT_DELETE => '未删除',
        ];
    }

    //通用审核 未处理 - 通过  - 不通过
    const COMMON_CHECKING_WAITING = 1;
    const COMMON_CHECKING_SUCCESS = 2;
    const COMMON_CHECKING_DEFEAT = 3;
    const COMMON_CHECKING_MAP = [
        self::COMMON_CHECKING_WAITING => '待审核',
        self::COMMON_CHECKING_SUCCESS => '通过',
        self::COMMON_CHECKING_DEFEAT => '不通过',
    ];

    //通用性别
    const COMMON_SEX_NO = 0;
    const COMMON_SEX_MAN = 1;
    const COMMON_SEX_WOMAN = 2;
    const COMMON_SEX_MAP = [
        self::COMMON_SEX_NO => '未知',
        self::COMMON_SEX_MAN => '男',
        self::COMMON_SEX_WOMAN => '女',
    ];



    //=============================== 用户KYC认证 ================================
    const USER_KYC_STATUS_CHECKING = 1;
    const USER_KYC_STATUS_DONE = 2;
    const USER_KYC_STATUS_DEFEAT = 3;
    const USER_KYC_STATUS_MAP = [
        self::USER_KYC_STATUS_CHECKING => "认证中",
        self::USER_KYC_STATUS_DONE => "已认证",
        self::USER_KYC_STATUS_DEFEAT => "认证失败",
    ];


    //=============================== 充值提现 ================================
    #user_recharge_info type
    const RECHARGE_TYPE_FRONT = 1; //用户充值
    const RECHARGE_TYPE_BACKEND = 2; //后台充值
    const RECHARGE_TYPE_MAP = [
        self::RECHARGE_TYPE_FRONT => '用户充值',
        self::RECHARGE_TYPE_BACKEND => '后台充值',
    ];

    #user_recharge_info status
    const RECHARGE_STATUS_DOING = 1;    #正在充值
    const RECHARGE_STATUS_DONE = 2;     #充值成功
    const RECHARGE_STATUS_FAILED = 3;   #充值失败
    const RECHARGE_STATUS_MAP = [
        self::RECHARGE_STATUS_DOING => '正在充值',
        self::RECHARGE_STATUS_DONE => '充值成功',
        self::RECHARGE_STATUS_FAILED => '充值失败',
    ];

    #user_withdraw_info status
    const WITHDRAW_STATUS_DOING = 1;    #正在提现
    const WITHDRAW_STATUS_DONE = 2;     #打款成功
    const WITHDRAW_STATUS_FAILED = 3;   #打款失败
    const WITHDRAW_STATUS_QUERYING = 4;   #打款中
    const WITHDRAW_STATUS_MAP = [
        self::WITHDRAW_STATUS_DOING => '正在提现',
        self::WITHDRAW_STATUS_DONE => '打款成功',
        self::WITHDRAW_STATUS_FAILED => '打款失败',
        self::WITHDRAW_STATUS_QUERYING => '打款中',
    ];

    #user_withdraw_info type
    const WITHDRAW_TYPE_MONEY = 1;    #余额钱包
    const WITHDRAW_TYPE_SHOP = 2;     #橱窗钱包
    const WITHDRAW_TYPE_MAP = [
        self::WITHDRAW_TYPE_MONEY => '余额钱包',
        self::WITHDRAW_TYPE_SHOP => '橱窗钱包',
    ];

    #user_withdraw_info withdraw_way
    const WITHDRAW_WAY_BANK = 1;    #余额钱包
    const WITHDRAW_WAY_ALIPAY = 2;     #橱窗钱包
    const WITHDRAW_WAY_MAP = [
        self::WITHDRAW_WAY_BANK => '银行卡',
        self::WITHDRAW_WAY_ALIPAY => '支付宝',
    ];


    //=============================== 商城管理 ================================
    # 商品订单
    const USER_GOODS_ORDER_STATUS_WAITING_PAY = 1;
    const USER_GOODS_ORDER_STATUS_WAITING_SEND = 2;
    const USER_GOODS_ORDER_STATUS_WAITING_RECEIVE = 3;
    const USER_GOODS_ORDER_STATUS_DONE = 4;
    const USER_GOODS_ORDER_SHENQING = 5;
    const USER_GOODS_ORDER_RETURNOK = 6;
    const USER_GOODS_ORDER_RETURNNO = 7;
    const USER_GOODS_ORDER_STATUS_CANCEL = 8;
    const USER_GOODS_ORDER_STATUS_MAP = [
        self::USER_GOODS_ORDER_STATUS_WAITING_PAY => '待付款',
        self::USER_GOODS_ORDER_STATUS_WAITING_SEND => '待发货',
        self::USER_GOODS_ORDER_STATUS_WAITING_RECEIVE => '待收货',
        self::USER_GOODS_ORDER_STATUS_DONE => '已完成',
        self::USER_GOODS_ORDER_SHENQING => '退款申请',
        self::USER_GOODS_ORDER_RETURNOK => '退款成功',
        self::USER_GOODS_ORDER_RETURNNO => '退款失败',
        self::USER_GOODS_ORDER_STATUS_CANCEL => '已取消',
    ];

    # 快递相关
    const EXPRESS_TYPE_BY_EXPRESS_COMPANY = 1;
    const EXPRESS_TYPE_BY_NO_COMPANY = 2;
    const EXPRESS_TYPE_MAP = [
        self::EXPRESS_TYPE_BY_EXPRESS_COMPANY => "有快递",
        self::EXPRESS_TYPE_BY_NO_COMPANY => "无快递发货",
    ];

    // 商城支付方式
    const PAY_WAY_MONEY = 1;
    const PAY_WAY_BANK = 2;
    const PAY_WAY_ALIPAY = 3;
    const PAY_WAY_IOS = 4;
    const PAY_WAY_MAP = [
        self::PAY_WAY_MONEY => '余额',
        self::PAY_WAY_BANK => '银行卡',
        self::PAY_WAY_ALIPAY => '支付宝',
        self::PAY_WAY_IOS => 'IOS内购',
    ];



    //=============================== IM管理 ================================
    # 二维码类型
    const QR_CODE_TYPE_USER = 1;       // 个人二维码
    const QR_CODE_TYPE_GROUP = 2;      // 群二维码
    const TOPIC_TYPE_MAP = [
        self::QR_CODE_TYPE_USER => '个人',
        self::QR_CODE_TYPE_GROUP => '群',
    ];

    # 审核类型
    const GROUP_APPLY_CHECK_TYPE_MANAGE = 1;       // 群主和管理员进行审核
    const GROUP_APPLY_CHECK_TYPE_USER = 2;      // 自己是否同意进群

    # 消息类型
    const MESSAGE_TYPE_GROUP_PUBLIC = 1; // 群通知，全员可见

    # 自定义消息类型
    const MESSAGE_TYPE_GROUP_USER_CREATE_GROUP = 1; // 创建群
    const MESSAGE_TYPE_GROUP_USER_INVITE_USER = 2; // 邀请好友
    const MESSAGE_TYPE_GROUP_USER_APPLY = 3; // 自己申请
    const MESSAGE_TYPE_GROUP_QUIT_GROUP = 4; // 自己退群
    const MESSAGE_TYPE_GROUP_EDIT_PIC = 5; // 修改头像
    const MESSAGE_TYPE_GROUP_EDIT_NAME = 6; // 修改名称
    const MESSAGE_TYPE_GROUP_EDIT_NOTICE = 7; // 修改公告
    const MESSAGE_TYPE_GROUP_TRANS = 8; // 群转让
    const MESSAGE_TYPE_GROUP_SHUT_UP_ON = 9; // 群禁言
    const MESSAGE_TYPE_GROUP_SHUT_UP_OFF = 10; // 群解言
    const MESSAGE_TYPE_GROUP_SHUT_UP_USER_ON = 11; // 群成员禁言
    const MESSAGE_TYPE_GROUP_SHUT_UP_USER_OFF = 12; // 群成员解言
    const MESSAGE_TYPE_GROUP_USER_BE_KICK_OUT = 13; // 被T了
    const MESSAGE_TYPE_GROUP_USER_SEND_RED_PACKET = 14; // 发送红包   群和个人一样
    const MESSAGE_TYPE_GROUP_USER_RECEIVE_RED_PACKET = 15; // 接收红包 群和个人一样
    const MESSAGE_TYPE_GROUP_USER_TRANSFER = 16; // 个人转账
    const MESSAGE_TYPE_SEND_USER_BUSINESS_CARD = 17; // 发送名片
    const MESSAGE_TYPE_USER_SYSTEM_NOTICE = 18; // 个人系统消息
    const MESSAGE_TYPE_USER_MONEY_MESSAGE = 19; // 个人财务消息
    const MESSAGE_TYPE_USER_SEND_GIFT = 20; // 礼物
    const MESSAGE_TYPE_USER_SHOP_MESSAGE = 21; // 礼物
    const MESSAGE_TYPE_ADMIN_NOT_READ = 99; // 系统发出来的申请个数


    # 群成员身份
    CONST GROUP_USER_TYPE_HOME = 1;
    CONST GROUP_USER_TYPE_MANAGE = 2;
    CONST GROUP_USER_TYPE_NORMAL = 3;
    const GROUP_USER_TYPE_MAP = [
        self::GROUP_USER_TYPE_HOME => '群主',
        self::GROUP_USER_TYPE_MANAGE => '管理员',
        self::GROUP_USER_TYPE_NORMAL => '成员',
    ];

    # 群成员进群方式
    CONST GROUP_USER_JOIN_TYPE_APPLY = 1;
    CONST GROUP_USER_JOIN_TYPE_INVITE = 2;
    CONST GROUP_USER_JOIN_TYPE_ER_CODE = 3;
    const GROUP_USER_JOIN_TYPE_MAP = [
        self::GROUP_USER_JOIN_TYPE_APPLY => '申请',
        self::GROUP_USER_JOIN_TYPE_INVITE => '邀请',
        self::GROUP_USER_JOIN_TYPE_ER_CODE => '二维码',
    ];

    # 红包状态
    CONST RED_PACKET_WAIT = 1;
    CONST RED_PACKET_DONE = 2;
    CONST RED_PACKET_RETURN = 3;
    const RED_PACKET_MAP = [
        self::RED_PACKET_WAIT => '未领取',
        self::RED_PACKET_DONE => '已领取',
        self::RED_PACKET_RETURN => '红包返还',
    ];


    # 红包类型 type
    CONST RED_PACKET_TYPE_USER = 1;
    CONST RED_PACKET_TYPE_GROUP = 2;
    CONST RED_PACKET_TYPE_EXCLUSIVE = 3;
    const RED_PACKET_TYPE_MAP = [
        self::RED_PACKET_TYPE_USER => '个人红包',
        self::RED_PACKET_TYPE_GROUP => '群红包',
        self::RED_PACKET_TYPE_EXCLUSIVE => '群专属',
    ];

    # 名片类型
    const IM_BUSINESS_CARD_SEND_TO_USER = 1;  // 单聊发名片
    const IM_BUSINESS_CARD_SEND_TO_GROUP = 2; // 群聊发名片
    const IM_BUSINESS_CARD_SEND_TO_MAP = [
        self::IM_BUSINESS_CARD_SEND_TO_USER => '单聊发名片',
        self::IM_BUSINESS_CARD_SEND_TO_GROUP => '群聊发名片',
    ];

    # 添加好友方式
    const IM_ADD_FRIEND_TYPE_NORMAL = 1;  // 搜索
    const IM_ADD_FRIEND_TYPE_BUSINESS_CARD = 2; // 名片添加
    const IM_ADD_FRIEND_TYPE_QR_CODE = 3; // 二维码扫描
    const IM_ADD_FRIEND_TYPE_FANS = 4; // 二维码扫描
    const IM_ADD_FRIEND_TYPE_MAP = [
        self::IM_ADD_FRIEND_TYPE_NORMAL => '搜索',
        self::IM_ADD_FRIEND_TYPE_BUSINESS_CARD => '名片添加',
        self::IM_ADD_FRIEND_TYPE_QR_CODE => '二维码扫描',
        self::IM_ADD_FRIEND_TYPE_FANS => '粉丝',
    ];


    //=============================== 财务管理 ================================
    # 余额种类
    const PROP_TYPE_MONEY = 1;              //余额
    const PROP_TYPE_COIN = 2;               //金币
    const PROP_TYPE_SHOP_MONEY = 3;         //橱窗余额
    const PROP_TYPE_MAP = [
        self::PROP_TYPE_MONEY => '余额',
        self::PROP_TYPE_COIN => '金币',
        self::PROP_TYPE_SHOP_MONEY => '橱窗余额',
    ];

    const USER_PROP_CHANGE_TYPE_INCOME  = 1;     //收入
    const USER_PROP_CHANGE_TYPE_CONSUME = 2;     //支出
    const USER_PROP_CHANGE_TYPE_OTHER   = 99;
    const USER_PROP_CHANGE_TAG = "系统变更";

    # 余额明细 money_log
    const MONEY_LOG_TYPE_SEND_RED_PACKET = 1;//发红包
    const MONEY_LOG_TYPE_RECEIVE_RED_PACKET = 2;//收红包
    const MONEY_LOG_TYPE_BACK_RED_PACKET = 3;//红包撤回
    const MONEY_LOG_TYPE_RECHARGE = 4;//充值
    const MONEY_LOG_TYPE_WITHDRAW = 5;//提现
    const MONEY_LOG_TYPE_WITHDRAW_DEFEAT = 6;//提现撤回
    const MONEY_LOG_TYPE_TRANSFER = 7;//转账
    const MONEY_LOG_TYPE_RECEIVE_TRANSFER = 8;//接受转账
    const MONEY_LOG_TYPE_BUT_GOODS = 9;//商城购买
    const MONEY_LOG_TYPE_BUT_GOODS_RETURN = 10;//商品退款
    const MONEY_LOG_TYPE_BUT_GOODS_SELL = 11;//商品出售
    const MONEY_LOG_TYPE_BUY_LEVEL = 12;//升级会员
    const MONEY_LOG_TYPE_BUY_COIN = 13;//充值金币
    const MONEY_LOG_TYPE_RECEIVE_GIFT = 14;//收到的金币转为礼物

    const MONEY_LOG_TYPE_MAP = [
        self::MONEY_LOG_TYPE_SEND_RED_PACKET => '发红包',
        self::MONEY_LOG_TYPE_RECEIVE_RED_PACKET => '领取红包',
        self::MONEY_LOG_TYPE_BACK_RED_PACKET => '红包撤回',
        self::MONEY_LOG_TYPE_RECHARGE => '充值',
        self::MONEY_LOG_TYPE_WITHDRAW => '提现',
        self::MONEY_LOG_TYPE_WITHDRAW_DEFEAT => '提现撤回',
        self::MONEY_LOG_TYPE_TRANSFER => '转账',
        self::MONEY_LOG_TYPE_RECEIVE_TRANSFER => '接受转账',
        self::MONEY_LOG_TYPE_BUT_GOODS => '商城购买',
        self::MONEY_LOG_TYPE_BUT_GOODS_RETURN => '商品退款',
        self::MONEY_LOG_TYPE_BUY_LEVEL => '升级会员',
        self::MONEY_LOG_TYPE_BUT_GOODS_SELL => '商品出售',
        self::MONEY_LOG_TYPE_BUY_COIN => '充值金币',
        self::MONEY_LOG_TYPE_RECEIVE_GIFT => '收到礼物',
    ];

    # 金币明细 coin
    const COIN_LOG_TYPE_RECHARGE = 1;//充值
    const COIN_LOG_TYPE_SEND_GIFT = 2;//送礼物
    const COIN_LOG_TYPE_RECEIVE_GIFT = 3;//收礼物
    const COIN_LOG_TYPE_WITHDRAW = 4;//提现
    const COIN_LOG_TYPE_WITHDRAW_DEFEAT = 5;//提现撤回
    const COIN_LOG_TYPE_MAP = [
        self::COIN_LOG_TYPE_RECHARGE => '充值',
        self::COIN_LOG_TYPE_SEND_GIFT => '送礼物',
        self::COIN_LOG_TYPE_RECEIVE_GIFT => '收礼物',
        self::COIN_LOG_TYPE_WITHDRAW => '提现',
        self::COIN_LOG_TYPE_WITHDRAW_DEFEAT => '提现撤回',
    ];

    //橱窗余额
    const SHOP_MONEY_LOG_TYPE_GOODS_SELL = 1;
    const SHOP_MONEY_LOG_TYPE_WITHDRAW = 2;
    const SHOP_MONEY_LOG_TYPE_WITHDRAW_DEFEAT = 3;
    const SHOP_MONEY_LOG_TYPE_GOODS_REFUND = 4;
    const SHOP_MONEY_LOG_TYPE_MAP = [
        self::SHOP_MONEY_LOG_TYPE_GOODS_SELL => '商品出售',
        self::SHOP_MONEY_LOG_TYPE_WITHDRAW => '提现',
        self::SHOP_MONEY_LOG_TYPE_WITHDRAW_DEFEAT => '提现撤回',
        self::SHOP_MONEY_LOG_TYPE_GOODS_REFUND => '商品退货',
    ];

    const USER_CHANGE_TAG_MAP = [
        self::PROP_TYPE_MONEY                => self::MONEY_LOG_TYPE_MAP,
        self::PROP_TYPE_COIN                 => self::COIN_LOG_TYPE_MAP,
        self::PROP_TYPE_SHOP_MONEY           => self::SHOP_MONEY_LOG_TYPE_MAP,
    ];

    //=============================== 圈子设置 ================================
    # 圈子
    const CIRCLE_USER_RELATION_TYPE_LIKE = 1;
    const CIRCLE_USER_RELATION_TYPE_COLLECT = 2;
    const CIRCLE_USER_RELATION_TYPE_VIEW = 3;
    const CIRCLE_USER_RELATION_TYPE_MAP = [
        self::CIRCLE_USER_RELATION_TYPE_LIKE => '点赞',
        self::CIRCLE_USER_RELATION_TYPE_COLLECT => '收藏',
        self::CIRCLE_USER_RELATION_TYPE_VIEW => '浏览',
    ];


    //=============================== 系统消息 ================================
    #system_message status
    const NOTICE_TYPE_ONE = 1; //纯文本
    const NOTICE_TYPE_TWO = 2; //图文不跳转
    const NOTICE_TYPE_THREE = 2; //图文跳转
    const NOTICE_TYPE_MAP = [
        self::NOTICE_TYPE_ONE => '纯文本',
        self::NOTICE_TYPE_TWO => '图文不跳转',
        self::NOTICE_TYPE_THREE => '图文跳转',
    ];

    //=============================== 统计信息 ================================
    const CITY_DATA_STATISTIC_REGISTER_DAY = 1;
    const CITY_DATA_STATISTIC_RELEASE_DAY = 2;
    const CITY_DATA_STATISTIC_MARKET_DAY = 3;
    const CITY_DATA_STATISTIC_LOGIN_DAY = 4;
    const CITY_DATA_STATISTIC_CITY_ACTIVITY = 5;
    const CITY_DATA_STATISTIC_SELL_DAY = 6;

    CONST CITY_DATA_STATISTIC_MAP = [
        self::CITY_DATA_STATISTIC_REGISTER_DAY=>"每日注册",
        self::CITY_DATA_STATISTIC_RELEASE_DAY=>"每日产量",
        self::CITY_DATA_STATISTIC_MARKET_DAY=>"每日交易",
        self::CITY_DATA_STATISTIC_LOGIN_DAY=>"每日在线会员",
        self::CITY_DATA_STATISTIC_CITY_ACTIVITY=>"加成活跃度",
        self::CITY_DATA_STATISTIC_SELL_DAY=>"每日售卖",
    ];

    //=============================== 商城类型 ================================
    const GOODS_TYPE_NAME_PERSONAL = 1;
    const GOODS_TYPE_NAME_OFFICIAL = 2;
    const GOODS_TYPE_MAP = [
        self::GOODS_TYPE_NAME_PERSONAL => '个人',
        self::GOODS_TYPE_NAME_OFFICIAL => '商家',
    ];

    //=============================== 用户级别 ================================
    #level_orde status
    const LEVEL_ORDER_STATUS_WAITING_APY = 1;       #待发货
    const LEVEL_ORDER_STATUS_DONE = 2;               #已完成
    const LEVEL_ORDER_STATUS_CANCEL = 3;             #已取消
    const LEVEL_ORDER_STATUS_MAP = [
        self::LEVEL_ORDER_STATUS_WAITING_APY => '待付款',
        self::LEVEL_ORDER_STATUS_DONE => '已完成',
//        self::LEVEL_ORDER_STATUS_CANCEL => '已取消',
    ];

    #level_orde type
    const LEVEL_ORDER_TYPE_OPEN_OR_CONTINUE = 1;       #开通/续费
    const LEVEL_ORDER_TYPE_UPDATE = 2;               #升级
    const LEVEL_ORDER_TYPE_MAP = [
        self::LEVEL_ORDER_TYPE_OPEN_OR_CONTINUE => '开通/续费',
        self::LEVEL_ORDER_TYPE_UPDATE => '升级',
    ];

    #level_log type
    const LEVEL_CHANGE_TYPE_RECHARGE = 1;
    const LEVEL_CHANGE_TYPE_UPDATE = 2;
    const LEVEL_CHANGE_TYPE_EXPIRE = 3;
    const LEVEL_CHANGE_TYPE_MAP = [
        self::LEVEL_CHANGE_TYPE_RECHARGE => '开通/续费',
        self::LEVEL_CHANGE_TYPE_UPDATE => '升级',
        self::LEVEL_CHANGE_TYPE_EXPIRE => '会员到期',
    ];

    #level_log status
    const LEVEL_CHANGE_STATUS_NORMAL = 1;
    const LEVEL_CHANGE_STATUS_FREEZE = 2;
    const LEVEL_CHANGE_STATUS_EXPIRE = 3;
    const LEVEL_CHANGE_STATUS_COVER = 4;
    const LEVEL_CHANGE_STATUS_MAP = [
        self::LEVEL_CHANGE_STATUS_NORMAL => '正常',
        self::LEVEL_CHANGE_STATUS_FREEZE => '冻结',
        self::LEVEL_CHANGE_STATUS_EXPIRE => '过期',
        self::LEVEL_CHANGE_STATUS_COVER => '覆盖',
    ];


    //=============================== 金币订单 ================================
    #coin_recharge_order status
    const COIN_RECHARGE_ORDER_STATUS_WAITING_APY = 1;       #待发货
    const COIN_RECHARGE_ORDER_STATUS_DONE = 2;               #已完成
    const COIN_RECHARGE_ORDER_STATUS_MAP = [
        self::COIN_RECHARGE_ORDER_STATUS_WAITING_APY => '待付款',
        self::COIN_RECHARGE_ORDER_STATUS_DONE => '已完成',
    ];

    //=============================== 关注 星标 ================================
    const USER_ATTENTION_TYPE_FOLLOW = 1;
    const USER_ATTENTION_TYPE_STAR = 2;
    const USER_ATTENTION_TYPE_BLOCK = 3;
    const USER_ATTENTION_TYPE_MAP = [
        self::USER_ATTENTION_TYPE_FOLLOW => '关注',
        self::USER_ATTENTION_TYPE_STAR => '星标',
        self::USER_ATTENTION_TYPE_BLOCK => '拉黑',
    ];


//=============================== 用户封禁操作 ================================
    const USER_UNUSUAL_TYPE_ALL = 1;
    const USER_UNUSUAL_TYPE_RED_PACKET = 2;
    const USER_UNUSUAL_TYPE_CIRCLE = 3;
    const USER_UNUSUAL_TYPE_GOODS = 4;
    const USER_UNUSUAL_TYPE_CHAT = 5;
    const USER_UNUSUAL_TYPE_MONEY = 6;
    const USER_UNUSUAL_TYPE_GROUP_CHAT = 8;
    const USER_UNUSUAL_TYPE_MAP = [
        self::USER_UNUSUAL_TYPE_ALL => '全部封禁',
        self::USER_UNUSUAL_TYPE_RED_PACKET => '红包封禁',
        self::USER_UNUSUAL_TYPE_CIRCLE => '动态封禁',
        self::USER_UNUSUAL_TYPE_GOODS => '橱窗封禁',
        self::USER_UNUSUAL_TYPE_CHAT => '聊天封禁',
        self::USER_UNUSUAL_TYPE_MONEY => '零钱封禁',
        self::USER_UNUSUAL_TYPE_GROUP_CHAT => '群聊封禁',
    ];

#user_seal_deblocking type
    const USER_UNUSUAL_STATUS_UNUSUAL = 1;
    const USER_UNUSUAL_STATUS_NORMAL = 2;
    const USER_UNUSUAL_STATUS_MAP = [
        self::USER_UNUSUAL_STATUS_UNUSUAL => '异常',
        self::USER_UNUSUAL_STATUS_NORMAL => '解除异常',
    ];
}


